<#list children as child> 
<option value="${child.cat_id}" style="padding-left:${(level+1)*10}px" >${child.name}</option>
	<#if child.hasChildren>
		<#assign level=level+1 />
	  	<#assign children=child.children />
		<#include 'select_children.html' />
  		<#assign level=level-1/>
	</#if>
</#list>